import{ut as e}from"./B603vO-13smUKN.js";import{f as t}from"./aWDZHnvL3RQbKF.js";import{$ as n,E as r,Ft as i,Ht as a,On as o,Yt as s,_ as c,g as l,k as u,mt as d,qt as f,tr as p,v as m,vn as h}from"./CIxmKYxc4tZcJF.js";import{C as g,x as _}from"./DWlEJV-j33On0I.js";import{n as v}from"./D4TKDBBK3Stj5M.js";import{t as y}from"./DZN_B5aU4JCyB.js";import{t as b}from"./DJeJfhW-4iv1Az.js";import{t as x}from"./Dl41KiPY1X9BGM.js";import{u as S}from"./BbxvatETxeTHf.js";var C=u({__name:`app-input-country`,props:n({id:{},title:{},disabled:{type:Boolean}},{modelValue:{required:!0,default:void 0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let{locale:t}=v(),n=i(e,`modelValue`),a=l(()=>{let e=t.value===`de`?`de`:`en`,n=Object.entries(S).map(([t,n])=>({id:t,title:n[e],search:`${t} ${n[e]}`}));return n.sort((e,t)=>y(e.title,t.title)),n});return(t,i)=>(d(),m(o(x),{id:e.id,modelValue:n.value,"onUpdate:modelValue":i[0]||=e=>n.value=e,items:a.value,disabled:e.disabled,title:e.title},{item:f(({item:e})=>[r(p(e.title)+` [`+p(e.id)+`] `,1)]),_:1},8,[`id`,`modelValue`,`items`,`disabled`,`title`]))}}),w=[`id`],T=u({__name:`app-input-iban`,props:{modelValue:{},id:{},title:{}},emits:[`update:modelValue`],setup(n,{emit:r}){let i=n,l=r,u=e(`app-input-iban`,globalThis.debugUI??!1),p=h(``);function v(){return p.value==null?void 0:t(p.value.trim())?.[0]?.value}function y(){let e=v();u(`update`,v()),l(`update:modelValue`,e??null),p.value=e??``}return a(()=>i.modelValue,e=>{u(`did change value`,e),p.value=e??``},{immediate:!0}),(e,t)=>(d(),m(o(b),{id:n.id,title:n.title},{default:f(()=>[s(c(`input`,{id:n.id,"onUpdate:modelValue":t[0]||=e=>p.value=e,type:`text`,class:`oui-input`,onBlur:y,onKeypress:g(y,[`enter`])},null,40,w),[[_,p.value]])]),_:1},8,[`id`,`title`]))}});export{C as n,T as t};